package org.mespilus.mespilusweb.ui.usermanagement.client.events;

import java.util.List;

import org.mespilus.mespilusweb.ui.usermanagement.client.model.UsefulMember;

import com.google.gwt.event.shared.GwtEvent;

public class UserListChangedEvent extends GwtEvent<UserListChangedHandler> {
	protected static final GwtEvent.Type<UserListChangedHandler> TYPE = new Type<UserListChangedHandler>();
	protected List<UsefulMember> members;
	
	
	
	public static GwtEvent.Type<UserListChangedHandler> getTYPE() {
		return TYPE;
	}

	public List<UsefulMember> getMembers() {
		return members;
	}

	public void setMembers(List<UsefulMember> members) {
		this.members = members;
	}

	@Override
	protected void dispatch(UserListChangedHandler handler) {
		handler.processUserListChanged(this);
	}

	@Override
	public Type<UserListChangedHandler> getAssociatedType() {
		return TYPE;
	}

}
